package com.ruoyi.AI;


import com.ruoyi.ZdPayment.domain.ZdPayment;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.async.DeferredResult;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

import static com.ruoyi.common.core.domain.AjaxResult.success;

@RestController
@RequestMapping("/ai")
public class AiController {


    @Resource
    private AiManager aiManager;

    @PostMapping("/contact")
    public AjaxResult aiC(@RequestBody Map<String, Object> datas)
    {
        String content = aiManager.doSyncUnStableRequest("使用系统默认", datas.get("message").toString());
        return success("操作成功",content);
    }
}
